package com.woniuxy.dao;

import com.woniuxy.pojo.Emp;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface EmpMapper {
   public List<Emp> selectAll(@Param("filed") String filed,@Param("sort") String sort);
   public List<Emp> selectAllByDept(@Param("tableName") String tableName);
   public Emp selectEmpByEname(@Param("ename")String ename);
   public Map<String,Object> selectEmpByEmpno(short empno);
   @MapKey("empno")
   public Map<String,Emp> selectEmpsByLikeEnameReturnMap(String ename);
}
